//
//  BaseModel.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/6/29.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

- (instancetype)initWithDic:(NSDictionary *)dic
{
    self=[super init];
    if (self) {
    
        
        //KVC的赋值方法调用
        [self setValuesForKeysWithDictionary:dic];
        
        
        
    }
    return self;
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    //KVC的用法.
    if ([key isEqualToString:@"id"]) {
        self.bid = value;
        
    }
    
}

@end
